<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],



    /*登录登出 管理*/
    '[login]' =>[
        'guard' => ['index/Index/Login', ['method' => 'get']],  //登录页面
        'login2' => ['index/Index/Login2', ['method' => 'get']],  //登录页面 测试
        'login' => ['index/Login/login', ['method' => 'post']],  //登录按钮功能
        'code'  => ['index/Login/code', ['method' => 'get']],  //验证码 接口  返回验证码信息（图片地址？）

        /* app 登录 接口 */
        'app_login' => ['index/Login/app_login', ['method' => 'post']],  //登录按钮功能  手机+验证码 登录

        /*退出登录*/
        'logout' => ['index/Login/logout', ['method' => 'post']],  //登出注销按钮功能
    ],



    /*app管理*/
    '[app]' =>[
        'app_add' => ['index/AppManager/appAdd', ['method' => 'post']],  //添加app
        'app_list_admin' => ['index/AppManager/applist_admin', ['method' => 'get']],  //app列表 ,后台专用
        'app_list' => ['index/AppManager/applist', ['method' => 'get']],  //app列表 (专供app用， 只显示启用的app)
        'app_edit' => ['index/AppManager/appModify', ['method' => 'post']],  // app修改
        'app_range' => ['index/AppManager/apprange', ['method' => 'post']],  //app排序
        'app_start_stop' => ['index/AppManager/app_start_stop', ['method' => 'post']],  //app启用停用
        'app_del'=> ['index/AppManager/delApp', ['method' => 'post']],  //app删除
        'shell_list'=>['index/AppManager/packageList', ['method' => 'get']],   //马甲包列表
        'click_statistic' =>['index/AppManager/click_statistic', ['method' => 'post']],  //app点击统计数据接口
        'rerank'=>['index/AppManager/re_rank', ['method' => 'get']],  //app排序初始化
    ],


    /*渠道商管理*/
    '[distributors]' =>[
        'lists' => ['index/Distributor/distributorList', ['method' => 'get']],  //一级渠道商管理 列表
        'sub_lists' => ['index/Distributor/get_sub_distributor', ['method' => 'get']], //二级渠道列表  get_sub_distributor
        'del' => ['index/Distributor/del_distributor', ['method' => 'post']],  //渠道商删除
        'add_action' => ['index/Distributor/distributorAdd', ['method' => 'post']],  //渠道商添加  按钮
        'edit'  => ['index/Distributor/changePwd', ['method' => 'post']], //changePwd 渠道商编辑

    ],


    /*用户管理*/
    '[users]' =>[
        'user_list' => ['index/User/userList', ['method' => 'get']],  //用户和列表
        'user_personal' => ['index/User/user_personal', ['method' => 'get']],  //个人信息回显
        'user_real_name_verify' => ['index/User/user_real_name_verify', ['method' => 'post']],  //用户信息 (审核) pc后台
        'user_info_add' => ['index/User/user_info_add', ['method' => 'post']],  //用户信息 (用户基本信息 app界面)
        'user_reg' =>['index/User/user_reg', ['method' => 'post']],    //app页面 用户注册数据提交  (用户手机 + 验证码)
        'user_edit' =>['index/User/user_edit', ['method' => 'post']], //用户信息修改 (新用户 app界面) 
        'user_export'=>['index/User/export', ['method' => 'get']],   //用户数据导出
        'user_modify' => ['index/Index/test', ['method' => 'get']],  //用户修改页面
        'user_modify_submit' => ['index/Index/test', ['method' => 'post']],  //用户修改数据提交
    ],


    /*信息推送*/
    '[msg]' =>[
        'msg_tpl' => ['index/Index/test', ['method' => 'get']],  //信息推送模板
        'msg_send' => ['index/MsgManage/msgTx', ['method' => 'post']],  //消息发送按钮
        'msg_post' => ['index/MsgManage/msgPost', ['method' => 'post']],  //消息提交到列表
        'msg_list'=>['index/MsgManage/msgList', ['method' => 'get']],   //推送列表
        'msg_push' => ['index/Index/test', ['method' => 'post']],  //推送列表 推送按钮
        'msg_del' => ['index/MsgManage/msgDelete', ['method' => 'post']],  //推送信息删除
    ],


    /*统计*/
    '[statistics]' =>[

        'main' => ['index/Statistic/statisticMainPage', ['method' => 'get']],  //首页统计图表
        'main_table'=> ['index/Statistic/main_table', ['method' => 'get']],//首页 表格 数据
        'chanelStatisticList' => ['index/Statistic/chanelStatisticList', ['method' => 'get']],  //渠道统计列表
        'product_dig' => ['index/Statistic/productList', ['method' => 'get']],  //产品统计
        'product_check' => ['index/Statistic/index', ['method' => 'post']],  //产品名称查询
        'func_api_pv'=>['index/Statistic/funcUseStatisticList', ['method' => 'get']],   //流量漏斗列表
        'action_dig' => ['index/Statistic/userActionStatisticList', ['method' => 'get']],  //操作统计 列表
        'app_main' => ['index/Statistic/app_main', ['method' => 'post']],  //app首页访问统计

        /* app手机页面访问统计 */
        'uri_statistic' => ['index/Statistic/uri_statistic', ['method' => 'post']],  //app页面点击统计,功能点击统计 （数据来自app）
    ],



    /*管理员*/
    '[admin]' =>[
        'adm_list' => ['index/AdminManage/adminList', ['method' => 'get']],  //管理员列表
        'adm_modify' => ['index/Index/index', ['method' => 'post']],  //编辑管理员信息
        'adm_add_table'=>['index/Index/run', ['method' => 'get']],   //添加管理员 表单
        'adm_add'=>['index/AdminManage/adminAdd', ['method' => 'post']],   //添加管理员 按钮
        'adm_del'=>['index/AdminManage/admin_del', ['method' => 'post']],  //管理员删除

    ],


    /*模板路由*/
    '[index]'=>[
        'home'=>['index/Index/Home',['method' => 'get']],//管理器容器
        'hometotal'=>['index/Index/Hometotal',['method' => 'get']],//首页统计
        'homepage'=>['index/Index/Homepage',['method' => 'get']],//后台主页
        'add_app'=>['index/Index/Addapp',['method' => 'get']],//添加app
        'app_list'=>['index/Index/AppList',['method' => 'get']],//app列表
        'majia_list'=>['index/Index/MajiaList',['method' => 'get']],//马甲包列表
        'channel_manage'=>['index/Index/ChannelManage',['method' => 'get']],//渠道管理
        'channel_add'=>['index/Index/ChannelAdd',['method' => 'get']],//渠道添加
        'user_list'=>['index/Index/Userlist',['method' => 'get']],//用户列表
        'push_msg'=>['index/Index/PushMsg',['method' => 'get']],//消息推送
        'push_list'=>['index/Index/PushList',['method' => 'get']],//消息推送
        'channel_total'=>['index/Index/ChannelTotal',['method' => 'get']],//渠道统计
        'product_total'=>['index/Index/ProductTotal',['method' => 'get']],//产品统计
        'traffic_total'=>['index/Index/TrafficTotal',['method' => 'get']],//流量统计
        'opraty_total'=>['index/Index/OpratalTotal',['method' => 'get']],//操作统计
        'admin_list'=>['index/Index/AdminList',['method' => 'get']],//管理员列表
        'admin_add'=>['index/Index/AdminAdd',['method' => 'get']],//管理员添加
        'user_feedback'=>['index/Index/Feedback',['method' => 'get']],//意见反馈
        'change_password'=>['index/Index/ChangePassword',['method' => 'get']],//修改密码
        'block_url_bind'=>['index/Index/BlockUrlBind',['method' => 'get']],//模块域名绑定
        'phone_slide_manage'=>['index/Index/PhoneSlide',['method' => 'get']],//手机幻灯片管理
        'clear_cache'=>['index/Index/ClearCache',['method' => 'get']],//清理缓存
    ],

    /*站点管理*/
    '[settings]' =>[
        'suggestion_list' => ['index/WebSetting/commentList', ['method' => 'get']],  //意见反馈列表
        'suggestion_rec' => ['index/WebSetting/suggestion_rec', ['method' => 'post']],  //接收用户提交的意见 数据来源 ：app端
        'pwd_change' => ['index/WebSetting/adminPwdChange', ['method' => 'post']],  //修改密码
        'show_admin_name' => ['index/WebSetting/show_admin_name', ['method' => 'get']],  //修改密码界面的 用户名回显


        /* 域名 */
        'domain_bind_list'=>['index/WebSetting/dnsBindList', ['method' => 'get']],   //模块域名绑定 列表
        'domain_bind_add'=>['index/WebSetting/domain_bind_add', ['method' => 'post']],   //模块域名绑定 添加按钮  右边
        'domain_bind_del'=>['index/WebSetting/domain_bind_del', ['method' => 'post']],   //模块域名绑定 删除按钮  右边
        'domain_bind_edit'=>['index/WebSetting/domain_bind_edit', ['method' => 'post']],   //模块域名绑定 修改按钮  右边

        
        /* banner  开始*/
        'get_banners'=>['index/WebSetting/get_banners', ['method' => 'get']],  //返回给APP 页面
        'app_banner_conf_list'=>['index/WebSetting/mobileBanners', ['method' => 'get']],   //手机app幻灯片管理 列表
        'app_banner_add_list'=>['index/Index/run', ['method' => 'get']],  //幻灯片添加表单
        'banner_upload'=>['index/Index/run', ['method' => 'post']],   //图片上传
        'app_banner_add'=>['index/WebSetting/banner_add', ['method' => 'post']],   //幻灯片信息提交按钮
        'banner_info_edit' =>['index/WebSetting/banner_info_edit', ['method' => 'post']],  //幻灯片信息 编辑修改
        'app_banner_del'=>['index/WebSetting/banner_del', ['method' => 'post']],   //删除幻灯片信息
        /* banner  结束*/


        /*公告*/
        'tips'=>['index/WebSetting/gonggao', ['method' => 'get']],  //APP 首页公告
        
        'clean_tpl'=>['index/Index/run', ['method' => 'get']],  //清空缓存页面
        'clean_action'=>['index/WebSetting/cacheClear', ['method' => 'post']],  //清空缓存按钮

    ],


    /* 短信平台接口 */
    '[msg_api]' =>[
        'to_send_verified_code' => ['index/MessagesApi/msg_info', ['method' => 'post']],  //获取短息验证码接口
    ],


    /* 渠道商数据浏览地址 */
    '[list]' =>[
        't' => ['index/MessagesApi/statistic_list', ['method' => 'get']],  //获取短息验证码接口
    ],


    /* app端 个人浏览 历史数据查询  */
    '[history]' =>[
        'person_view_history' => ['index/History/person_view_history', ['method' => 'get']],  //个人浏览历史 前20条
    ],

    '/' => 'index/Index/Login',  //没有路由就打开默认地址  登录页面

    '__miss__' => 'index/login',

];
